package com.hospital.hms.dao;

import com.hospital.hms.pojo.MedicalDept;
import com.hospital.hms.pojo.MedicalDeptSubDoctor;
import com.mysql.fabric.HashShardMapping;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

@Mapper
public interface MedicalDeptDao {
    public ArrayList<HashMap> selectAll();

    public ArrayList<HashMap> selectDeptAndSub();

    public ArrayList<HashMap> selectConditionByPage(Map map);

    public long selectConditionByPageCount(Map map);

    ArrayList<HashMap> selectAllDeptNameAndId();

    public void insert(MedicalDept medicalDept);

    public HashMap selectById(int id);

    public void update(MedicalDept medicalDept);

    public long selectSubCountByIds(Integer[] ids);

    public void deleteByIds(Integer[] ids);  //删除一个或多个科室信息

    public ArrayList<HashMap> selectMedicalDeptList(Map param);
}
